package dao;

import model.PersonnelPerformance;
import view.PersonnelPerformanceView;
import view.QueryView;

import java.util.List;
import java.util.Map;

public interface PersonnelPerformanceDao {

    int deleteByPrimaryKey(Integer id);

    int insert(PersonnelPerformance record);

    int insertSelective(PersonnelPerformance record);

    PersonnelPerformance selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonnelPerformance record);

    int updateByPrimaryKey(PersonnelPerformance record);

    /**
     * @Author: 杨青桦
     * @Description:  删除重复年月份的数据
     * @Date: 2018/5/23 16:55
     * @return
     */
    int deleteRepeatData(QueryView queryView);

    /**
     * @Author: 杨青桦
     * @Description: 查询单个医院月份情况
     * @Date: 2018/5/23 15:57
     * @param map
     * @return
     */
    List<PersonnelPerformanceView> queryForHospital(Map map);

    /**
     * @Author: 杨青桦
     * @Description:  查询某医院分类情况
     * @Date: 2018/5/23 15:58
     * @param map
     * @return
     */
    List<PersonnelPerformanceView> queryForHospitalType(Map map);
}